package com.lp.biz.operations.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

import static com.lp.common.constant.CommonConstant.DATE_MIN;
import static com.lp.common.constant.CommonConstant.TIMEZONE;

/**
 * @program: backend
 * @description:
 * @author: Ke.Song
 * @since: 2024-07-13 1:08:06
 */
@Data
public class HomeRecommendVo {

    private Integer id;

    @NotBlank(message = "标题不能为空")
    private String title;

    @NotNull(message = "类型不能为空")
    private Integer type;

//    @NotNull(message = "分类不能为空")
    private String bizCategoryCode;

    @NotNull(message = "开始时间不能为空")
    @JsonFormat(timezone = TIMEZONE, pattern = DATE_MIN)
    private LocalDateTime startAt;

    @NotNull(message = "结束时间不能为空")
    @JsonFormat(timezone = TIMEZONE, pattern = DATE_MIN)
    private LocalDateTime endAt;

    private Integer size;

    private Integer sort;

    private Integer parentId;

    private Integer align;
}
